package c6132.bean;

import c6132.dao.studentinter;
import c6132.dao.suudentimp;
import c6132.entity.student;
//业务逻辑层
public class studentAdd {
    studentinter studentinter=new suudentimp();
    public void   addstudent(student s){
        studentinter.add(s);
    }
    public  void deletestudent(student s){
        studentinter.delete(s);
    }
    public void updatestudent(student s){
        studentinter.updata(s);
    }
    public void findbyid(int id){
        student s=studentinter.findbyid(id);
        System.out.println(s.getId()+" "+s.getName()+" "+s.getAge());
    }
}
